.post-detail-page {
  padding: 20px;
  background-color: #f8f8fb;
  min-height: 100vh;
  max-width: 1200px;
  margin: 0 auto;
}

/* 返回导航 */
.back-nav {
  margin-bottom: 20px;
}

.back-btn {
  padding: 10px 20px;
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  color: #6c757d;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.back-btn:hover {
  border-color: #ff6699;
  color: #ff6699;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 102, 153, 0.2);
}

/* 帖子主体卡片 */
.post-main-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 102, 153, 0.1);
}

.post-header {
  padding: 30px 30px 20px;
  background: linear-gradient(135deg, #ff6699 0%, #ff4757 100%);
  color: white;
}

.post-title-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.post-title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==== 帖子状态 Badge ==== */
.post-status {
  display: inline-block;
  padding: 2px 8px;
  margin-right: 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  user-select: none;
}

/* 颜色区分 */
.status-normal   { background: #4caf50; }  /* 绿色 - 正常 */
.status-pending  { background: #ff9800; }  /* 橙色 - 审核中 */
.status-locked   { background: #f44336; }  /* 红色 - 已锁定 */


.pinned-tag {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.post-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}

.post-stats {
  display: flex;
  align-items: center;
  gap: 15px;
}

.updated-time {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.post-body {
  padding: 30px;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 12px;
  border-left: 4px solid #ff6699;
}

.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #ff6699;
  box-shadow: 0 4px 15px rgba(255, 102, 153, 0.3);
  transition: all 0.3s ease;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-details {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.author-name {
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
  transition: all 0.3s ease;
}

.author-level {
  font-size: 14px;
  color: #ff6699;
  background: rgba(255, 102, 153, 0.1);
  padding: 4px 12px;
  border-radius: 12px;
  display: inline-block;
  width: fit-content;
}

/* 可点击元素样式 */
.clickable {
  cursor: pointer;
  transition: all 0.3s ease;
}

.clickable:hover {
  transform: scale(1.05);
}

.author-avatar.clickable:hover {
  box-shadow: 0 6px 20px rgba(255, 102, 153, 0.4);
  border-color: #ff4757;
}

.author-name.clickable:hover {
  color: #ff6699;
  text-decoration: underline;
}

.comment-avatar.clickable:hover {
  box-shadow: 0 4px 15px rgba(255, 102, 153, 0.3);
  border-color: #ff6699;
}

.comment-username.clickable:hover {
  color: #ff6699;
  text-decoration: underline;
}

.post-content {
  margin-bottom: 25px;
}

.content-text {
  font-size: 16px;
  line-height: 1.8;
  color: #2c3e50;
  margin-bottom: 20px;
  white-space: pre-wrap;
}

.content-image {
  text-align: center;
  margin: 20px 0;
}

.content-image img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.post-actions {
  display: flex;
  gap: 15px;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
}

.action-btn {
  padding: 12px 20px;
  border: 2px solid #e9ecef;
  background: white;
  border-radius: 25px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6c757d;
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.like-btn:hover {
  border-color: #ff6699;
  color: #ff6699;
  background: rgba(255, 102, 153, 0.05);
}

.like-btn.liked {
  border-color: #ff6699;
  color: #ff6699;
  background: rgba(255, 102, 153, 0.1);
}

.reply-btn:hover {
  border-color: #007bff;
  color: #007bff;
  background: rgba(0, 123, 255, 0.05);
}

.report-btn:hover {
  border-color: #dc3545;
  color: #dc3545;
  background: rgba(220, 53, 69, 0.05);
}

.action-icon {
  font-size: 16px;
}

.action-count {
  font-size: 12px;
  opacity: 0.8;
}

/* 评论区 */
.comments-section {
  background: white;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 1px solid rgba(255, 102, 153, 0.1);
}

.comments-header {
  padding: 25px 30px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.comments-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.comments-pagination-info {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}

/* 评论表单 */
.comment-form-card {
  padding: 25px 30px;
  border-bottom: 1px solid #e9ecef;
  background: #f8f9fa;
}

.reply-indicator {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: rgba(255, 102, 153, 0.1);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  border-left: 4px solid #ff6699;
}

.reply-text {
  font-size: 14px;
  color: #2c3e50;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.reply-content {
  font-style: italic;
  color: #6c757d;
  font-size: 13px;
}

.cancel-reply {
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.cancel-reply:hover {
  background: #c82333;
  transform: scale(1.1);
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.comment-input {
  width: 100%;
  padding: 15px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  transition: all 0.3s ease;
  background: white;
}

.comment-input:focus {
  outline: none;
  border-color: #ff6699;
  box-shadow: 0 0 0 3px rgba(255, 102, 153, 0.1);
  transform: translateY(-1px);
}

.comment-form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.char-count {
  font-size: 12px;
  color: #6c757d;
}

.form-buttons {
  display: flex;
  gap: 10px;
}

.cancel-btn {
  padding: 10px 20px;
  border: 2px solid #6c757d;
  background: white;
  color: #6c757d;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.cancel-btn:hover {
  background: #6c757d;
  color: white;
}

.submit-btn {
  padding: 10px 20px;
  border: none;
  background: linear-gradient(135deg, #ff6699, #ff4757);
  color: white;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 102, 153, 0.4);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.submit-btn.loading {
  pointer-events: none;
}

.btn-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.btn-icon {
  font-size: 14px;
}

/* 评论列表 */
.comments-list {
  padding: 0 30px 30px;
}

.comments-loading {
  text-align: center;
  padding: 40px 20px;
  color: #6c757d;
}

.no-comments {
  text-align: center;
  padding: 60px 20px;
  color: #6c757d;
}

.no-comments-icon {
  font-size: 48px;
  margin-bottom: 15px;
  opacity: 0.5;
}

.no-comments p {
  font-size: 16px;
  margin: 0;
}

.comment-card {
  padding: 20px;
  border-bottom: 1px solid #f1f3f4;
  transition: all 0.3s ease;
}

.comment-card:hover {
  background: #f8f9fa;
}

.comment-card:last-child {
  border-bottom: none;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.comment-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

.comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comment-user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.comment-username {
  font-size: 14px;
  font-weight: 600;
  color: #2c3e50;
  transition: all 0.3s ease;
}

.comment-user-level {
  font-size: 12px;
  color: #ff6699;
  background: rgba(255, 102, 153, 0.1);
  padding: 2px 8px;
  border-radius: 8px;
  width: fit-content;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #6c757d;
}

.floor-number {
  background: #ff6699;
  color: white;
  padding: 2px 8px;
  border-radius: 8px;
  font-weight: 600;
}

.reply-reference {
  margin-bottom: 15px;
  padding: 12px;
  background: rgba(0, 123, 255, 0.05);
  border-left: 4px solid #007bff;
  border-radius: 8px;
}

.reply-indicator-text {
  font-size: 13px;
  color: #007bff;
  font-weight: 500;
}

.reply-content-preview {
  font-size: 12px;
  color: #6c757d;
  font-style: italic;
  margin-top: 5px;
  padding: 8px;
  background: white;
  border-radius: 6px;
}

.comment-content {
  font-size: 14px;
  line-height: 1.6;
  color: #2c3e50;
  margin-bottom: 15px;
  white-space: pre-wrap;
}

.comment-image {
  margin-top: 10px;
}

.comment-image img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.comment-actions {
  display: flex;
  gap: 15px;
}

.comment-action-btn {
  padding: 6px 12px;
  border: 1px solid #e9ecef;
  background: white;
  border-radius: 15px;
  cursor: pointer;
  font-size: 12px;
  color: #6c757d;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.comment-action-btn:hover {
  border-color: #ff6699;
  color: #ff6699;
  background: rgba(255, 102, 153, 0.05);
  transform: translateY(-1px);
}

.comment-action-btn.report-btn:hover {
  border-color: #dc3545;
  color: #dc3545;
  background: rgba(220, 53, 69, 0.05);
}

/* 评论分页样式 */
.comments-pagination-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  padding: 20px 30px;
  border-top: 1px solid #e9ecef;
  background: #f8f9fa;
  flex-wrap: wrap;
  gap: 15px;
}

.pagination-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #666;
}

.page-size-select {
  padding: 6px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  background: white;
  cursor: pointer;
}

.pagination {
  display: flex;
  gap: 5px;
  align-items: center;
}

.page-btn {
  padding: 8px 12px;
  border: 1px solid #ddd;
  background: white;
  color: #333;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  min-width: 40px;
  text-align: center;
  transition: all 0.3s ease;
}

.page-btn:hover:not(:disabled) {
  background-color: #f5f5f5;
  border-color: #ff6699;
  transform: translateY(-1px);
}

.page-btn.active {
  background-color: #ff6699;
  color: white;
  border-color: #ff6699;
  box-shadow: 0 2px 8px rgba(255, 102, 153, 0.3);
}

.page-btn:disabled {
  background-color: #f5f5f5;
  color: #ccc;
  cursor: not-allowed;
  transform: none;
}

.page-ellipsis {
  padding: 8px 4px;
  color: #666;
  font-size: 14px;
}

/* 举报弹窗样式 */
.report-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.report-modal-content {
  background: white;
  border-radius: 16px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.report-modal-header {
  padding: 20px 25px;
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 16px 16px 0 0;
}

.report-modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.report-icon {
  font-size: 20px;
}

.report-modal-close {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.report-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.report-modal-body {
  padding: 25px;
}

.report-section-title {
  margin: 0 0 15px 0;
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
}

/* 举报对象信息 */
.report-target-info {
  margin-bottom: 25px;
}

.report-target-card {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 15px;
  border-left: 4px solid #dc3545;
}

.report-target-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.report-target-author {
  font-size: 14px;
  font-weight: 600;
  color: #2c3e50;
}

.report-target-type {
  background: #dc3545;
  color: white;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}

.report-target-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.report-target-title {
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
  line-height: 1.4;
}

.report-target-preview {
  font-size: 14px;
  color: #6c757d;
  line-height: 1.5;
  background: white;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

/* 举报原因输入 */
.report-reason-section {
  margin-bottom: 25px;
}

.report-reason-input-container {
  margin-bottom: 15px;
}

.report-reason-input {
  width: 100%;
  padding: 15px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  transition: all 0.3s ease;
  background: white;
  line-height: 1.5;
}

.report-reason-input:focus {
  outline: none;
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
  transform: translateY(-1px);
}

.report-reason-char-count {
  text-align: right;
  font-size: 12px;
  color: #6c757d;
  margin-top: 8px;
}

.char-count-warning {
  color: #dc3545;
  font-weight: 500;
}

/* 常用举报原因提示 */
.report-reason-tips {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.tips-title {
  font-size: 14px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 10px;
  display: block;
}

.tips-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tip-tag {
  background: white;
  border: 1px solid #dc3545;
  color: #dc3545;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.tip-tag:hover {
  background: #dc3545;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

/* 弹窗底部按钮 */
.report-modal-footer {
  padding: 20px 25px;
  background: #f8f9fa;
  border-radius: 0 0 16px 16px;
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  border-top: 1px solid #e9ecef;
}

.report-cancel-btn {
  padding: 10px 20px;
  border: 2px solid #6c757d;
  background: white;
  color: #6c757d;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.report-cancel-btn:hover {
  background: #6c757d;
  color: white;
}

.report-submit-btn {
  padding: 10px 20px;
  border: none;
  background: linear-gradient(135deg, #dc3545, #c82333);
  color: white;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.report-submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.report-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.report-submit-btn.loading {
  pointer-events: none;
}

.report-submit-icon {
  font-size: 14px;
}

/* 加载和错误状态 */
.loading-container,
.error-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 50vh;
  color: #6c757d;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e9ecef;
  border-top: 4px solid #ff6699;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

.error-container {
  color: #dc3545;
}

.error-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.retry-btn {
  margin-top: 20px;
  padding: 10px 20px;
  background: #ff6699;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s ease;
}

.retry-btn:hover {
  background: #ff4757;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .post-detail-page {
    padding: 15px;
  }

  .post-header {
    padding: 20px;
  }

  .post-title {
    font-size: 22px;
    flex-direction: column;
    align-items: flex-start;
  }

  .post-meta {
    font-size: 13px;
  }

  .post-body {
    padding: 20px;
  }

  .author-info {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .author-avatar {
    width: 50px;
    height: 50px;
  }

  .post-actions {
    flex-wrap: wrap;
    gap: 10px;
  }

  .action-btn {
    flex: 1;
    min-width: 120px;
    justify-content: center;
  }

  .comments-header {
    padding: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .comments-pagination-info {
    font-size: 12px;
  }

  .comment-form-card,
  .comments-list {
    padding: 20px;
  }

  .comment-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .comment-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .comment-actions {
    flex-wrap: wrap;
    gap: 8px;
  }

  .comment-action-btn {
    flex: 1;
    justify-content: center;
    min-width: 80px;
  }

  .form-buttons {
    flex-direction: column;
    width: 100%;
  }

  .cancel-btn,
  .submit-btn {
    width: 100%;
    justify-content: center;
  }

  .comments-pagination-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
  }

  .pagination {
    flex-wrap: wrap;
    justify-content: center;
  }

  /* 举报弹窗响应式 */
  .report-modal-content {
    width: 95%;
    margin: 20px;
    max-height: 90vh;
  }

  .report-modal-header {
    padding: 15px 20px;
  }

  .report-modal-body {
    padding: 20px;
  }

  .tips-tags {
    gap: 6px;
  }

  .tip-tag {
    font-size: 11px;
    padding: 3px 8px;
  }

  .report-modal-footer {
    padding: 15px 20px;
    flex-direction: column;
  }

  .report-cancel-btn,
  .report-submit-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .post-title {
    font-size: 20px;
  }

  .content-text {
    font-size: 15px;
  }

  .comment-input,
  .report-reason-input {
    font-size: 16px; /* 防止iOS缩放 */
  }

  .comments-pagination-wrapper {
    padding: 15px;
  }

  .pagination-info {
    font-size: 12px;
  }

  .report-modal-title {
    font-size: 16px;
  }

  .report-target-title {
    font-size: 14px;
  }

  .report-target-preview {
    font-size: 13px;
  }

  .tips-tags {
    gap: 4px;
  }

  .tip-tag {
    font-size: 10px;
    padding: 2px 6px;
  }
}
